// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 提问问题 POST /api/module/SmartChemistry */
export async function smartChemistryCreate(
  body: API.ChemistryAskCreateInputModel,
  options?: { [key: string]: any },
) {
  return request<API.Result>('/api/module/SmartChemistry', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 清空用户数据 DELETE /api/module/SmartChemistry */
export async function smartChemistryClear(options?: { [key: string]: any }) {
  return request<API.Result>('/api/module/SmartChemistry', {
    method: 'DELETE',
    ...(options || {}),
  });
}

/** 分页查询 GET /api/module/SmartChemistry/Page */
export async function smartChemistryPagination(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.SmartChemistryPaginationParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult1ChemistryAskOutputModel>('/api/module/SmartChemistry/Page', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
